package com.rk.cust.common.exception;

import lombok.Getter;
import lombok.ToString;

@Getter
public class CustException extends RuntimeException {

    private ErrorCode errorCode;

    public CustException(ErrorCode errorCode) {
        super(errorCode.getErrorCode() + " " + errorCode.getErrorMsg());
        this.errorCode = errorCode;
    }
}
